package com.star.exception;

/**
 * 系统级异常
 *
 * @author tanyapeng
 */
public class SystemException extends RuntimeException {

    private final int code;
    private final String message;

    public SystemException() {
        this.code = 10000;
        this.message = "系统错误";
    }

    public SystemException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
